﻿<%@ Page Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false" CodeFile="RenReportMeeting.aspx.vb" Inherits="RenReportMeeting" title="Untitled Page" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript" src="scripts/overlib.js"></script>
<asp:Label ID="lblStaffUID" runat="server" Visible="false" />
<asp:Label ID="lblStaffType" runat="server" Visible="false" />
    <div >
    <h1>REN Report Search</h1>
<hr />

<div  runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">
    
        <span class="title">Error</span><br />
        <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
        </div>
<div  runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">
    
        <span class="title">Successful</span><br />
        <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />
    
</div>
<p><%--Description of the page--%></p>
<!--Slide Out Adv Search Here-->
<asp:Panel ID="pnlFilter" runat="server">


<table class="SearchFilter" width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
  <tr>
    <td width="30">&nbsp;</td>
    <td width="120">Project</td>
    <td width="250"><asp:TextBox ID="txtProject" runat="server" Width="300px" /></td>
    <td width="30">&nbsp;</td>
    <td width="120">Property Type</td>
    <td width="250">
    
    <asp:UpdatePanel ID="upePropertyType" runat="server" UpdateMode="Always"><ContentTemplate>
            <asp:TextBox ID="txtPropertyType" runat="server" Width="250px" />
            <%--Project Type Entry Panel--%>
            <asp:Panel ID="pnlPropertyTypeEntry" runat="server" CssClass="modalPopup" 
                Style="display:none" Width="500px">
                <table border="0" cellpadding="0" cellspacing="0" class="PopupContainer">
        <tr>
            <td style="width:30px; height:41px" background="images/style01/PopupHead-top-left.gif">
            </td>
            <td background="images/style01/PopupHead-top-middle.gif" valign="bottom">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupHeader">
                <thead>
                    <tr>
                        <td align="center" style="text-align:center" height="30"><asp:Label ID="lblPropertyEntryTitle" runat="server" Text="Property Type Detail" /></td>
                        <td align="right" style="text-align:right"><asp:ImageButton ID="imgButPropertyTypeClose" runat="server" AlternateText="Close" Height="20px" Width="20px" ImageUrl="~/images/style01/Btn-Close.png"  /> </td>
                    </tr>
                 </thead>
                </table>    
            </td>
            <td style="width:30px; height:41px" background="images/style01/PopupHead-top-right.gif">
            </td>
        </tr>
        <tr>
        <td width="30" height="30" background="images/style01/Popup-PropertyType-left.gif">&nbsp;</td>
        <td  background="images/style01/Popup-PropertyType-middle.gif" style="background-color:white;">&nbsp;</td>
        <td background="images/style01/Popup-PropertyType-right.gif">&nbsp;</td>
        </tr>
        <tr>
            <td style="width:30px" background="images/style01/Popup-left-middle.gif"></td>
            <td  bgcolor="#FFFFFF" >
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupDataDisplay" style="height:100%; background-color:#FFFFFF;" >
                    <tr>
                        <td >
                        <div style="height:500px; overflow:auto;">
                                <table width="100%" border="0"  >
                                    <tr>
                                        <td>
                                            <strong>Property Type</strong></td>
                                        <td>
                                            <strong>Description</strong></td>
                                    </tr>
                                    <asp:Repeater ID="repPropertyType" runat="server">
                                        <ItemTemplate>
                                            <tr>
                                                <td>
                                                    <asp:LinkButton ID="lnkRepPropertyType" runat="server" 
                                                        CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' 
                                                        CommandName="SelectType" Text='<%#Container.DataItem("Type").ToString%>' />
                                                </td>
                                                <td>
                                                    <%#Container.DataItem("TypeDesc").ToString%>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </table>
                            </div>
                        
                        
                        
                        
                        </td>
                    </tr>
                </table>
            </td>
            
            <td style="width:30px" background="images/style01/Popup-right-middle.gif"></td>
        </tr>
        <tr>
            <td style="width:30px; height:55px" background="images/style01/Popup-bottom-left.gif"></td>
            <td style="text-align:right" background="images/style01/Popup-bottom-middle.gif">&nbsp;</td>
            <td style="width:30px; height:55px" background="images/style01/Popup-bottom-right.gif"></td>
        </tr>
    </table>

            </asp:Panel>
            <asp:Button ID="btnPropertyTypeHiddenNew" runat="server" style="display:none" />
            <cc1:ModalPopupExtender ID="mpePropertyTypeEntry" runat="server" BackgroundCssClass="modalBackground" DropShadow="false" PopupControlID="pnlPropertyTypeEntry" TargetControlID="btnPropertyTypeHiddenNew" EnableViewState="True" />
            <%--End Project Type Entry Panel--%>
            </ContentTemplate></asp:UpdatePanel>

    </td>
    <td>
        <asp:ImageButton ID="btnSearchPropertyType" runat="server" Text="Search" ImageUrl="~/images/style01/Btn-manify.png" />
      </td>
      <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>Road Name</td>
    <td><asp:TextBox ID="txtRoadName" runat="server" Width="300px" /></td>
    <td>&nbsp;</td>
    <td>List Type</td>
    <td>
        <asp:DropDownList ID="ddlListType" runat="server">
            <asp:ListItem Text="ANY" Selected=True Value="" />
            <asp:ListItem Text="SR - Sales Residential" Value="0" />
            <asp:ListItem Text="SC - Sales Commercial" Value="1" />
            <asp:ListItem Text="SI - Sales Industrial" Value="2" />
            <asp:ListItem Text="SL - Sales Land" Value="3" />
            <asp:ListItem Text="RR - Rent Residential" Value="4" />
            <asp:ListItem Text="RC - Rent Commercial" Value="5" />
            <asp:ListItem Text="RI - Rent Industrial" Value="6" />
            <asp:ListItem Text="RL - Rent Land" Value="7" />
        </asp:DropDownList>
      </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>Location Name</td>
    <td><asp:TextBox ID="txtLocationName" runat="server" Width="300px" /></td>
    <td>&nbsp;</td>
    <td>Price</td>
    <td><asp:TextBox ID="txtPriceFrom" runat="server" Width="100px" Text="0" onkeypress="return isNumberKey(event)" onpaste="return false;" />&nbsp;TO&nbsp;<asp:TextBox ID="txtPriceTo" runat="Server" Width="100px" Text="999999999" onkeypress="return isNumberKey(event)" onpaste="return false;" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>Country</td>
    <td><asp:DropDownList ID="ddlCountry" runat="server" AutoPostBack="true" Width="300px"/></td>
    <td>&nbsp;</td>
    <td>Contact Status</td>
    <td>
        <asp:DropDownList ID="ddlStatus" runat="server">
            <asp:ListItem Text="ANY" Value="" />
            <asp:ListItem Text="Active" Value="0" />
            <asp:ListItem Text="Inactive" Value="1" />
            <asp:ListItem Text="On Hold" Value="2" />
            <asp:ListItem Text="Closed" Value="3" />
 </asp:DropDownList>
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr> 
  <tr>
    <td>&nbsp;</td>
    <td>State</td>
    <td><asp:DropDownList ID="ddlState" runat="server" Width="300px" /></td>
    <td>&nbsp;</td>
    <td>Contact Name</td>
    <td><asp:DropDownList ID="ddlContactName" runat="server" Width="300" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr id="trBoss" runat="server">
    <td>&nbsp;</td>
    <td></td>
    <td></td>
    <td>&nbsp;</td>
    <td>List By</td>
    <td><asp:DropDownList ID="ddlListBy" runat="server" Width="300px" AutoPostBack="true" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="5" align="right"><div style="border-top: 1px solid #c2c2c2; height:20px; padding-top:10px; "><asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="search-btn" Width="80" />    
        <asp:Button ID="btnResetSearchFilter" runat="server" Text="Reset" CssClass="search-btn" Width="60" /></div>
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  </tbody>

</table>

<br />

<!--Result Pane Here-->

</asp:Panel>
       
<table class="ResultPanelContainer" border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td>
        
            <table class="ResultPanelHeader" border="0" width="100%">
                <tr>
                    <td><asp:label ID="lblHeadNoOfItem" runat="server" Text="0" />&nbsp;items total</td>
                    <td align="right">
                        Number of entries per page : <asp:LinkButton ID="lnkHead10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkHead25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkHead100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkHead150Item" runat="server" Text="150" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
           
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ResultPanelDataDisplay" id="PropertyList">
            <thead >
                <tr>
                    <th scope="col" id="first-col"><strong><asp:LinkButton ID="lnkName" runat="server" Text="Name▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkMobile" runat="server" Text="Mobile▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkCompany" runat="server" Text="Company▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkStatus" runat="server" Text="Status▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col">&nbsp;</th>
                </tr>
            </thead> 
            <tbody>
                <asp:Repeater ID="repRenReportSearch" runat="server">
                    <ItemTemplate>
                        <tr>
                        <%--edited by minginn @13/4/11 to allow user view the property by clicking the row--%>
                            <td id="first-col"><asp:Label ID="lblRepRenContactId" runat="server" Text='<%#Container.dataitem("RenContactId").tostring %>' Visible="false" /><asp:LinkButton ID="lblRepName" runat="server" Text='<%#Container.DataItem("Name").ToString%>' CommandArgument='<%#Container.dataitem("RenContactId").tostring %>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblRepMobile" runat="server" Text='<%#Container.dataitem("Mobile").tostring %>' CommandArgument='<%#Container.dataitem("RenContactId").tostring %>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblRepCompany" runat="server" Text='<%#Container.dataitem("Company").tostring %>' CommandArgument='<%#Container.dataitem("RenContactId").tostring %>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblRepStatus" runat="server" Text='<%#Container.dataitem("Status").tostring %>' CommandArgument='<%#Container.dataitem("RenContactId").tostring %>' CommandName="ViewList" /></td>                               
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
               </tbody>
            </table>
            
      </td>
    </tr>
    <tr>
        <td>
            <table class="ResultPanelFooter" width="100%">
                <tr>
                    <td ><asp:label ID="lblFootNoOfItem" runat="server" Text="0" />&nbsp; items total</td>
                    <td align="center" valign="middle">
                        <asp:Panel ID="pnlNavigation" runat="server" style="text-align:center; vertical-align:middle;">
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-first.png"   ID="btnMoveFirst"  runat="server" Width="28"  Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-back.png"    ID="btnPrevious"   runat="server" Width="28"  Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:TextBox ID="txtPageNo" runat="server" Text="1" Height="12" Width="28" Font-Size="10px" style="text-align:center; vertical-align:middle;" onkeypress="return isNumberKeyOnly(event)" onpaste="return isNumberKeyOnly(event)" />&nbsp;
                                <asp:Label ID="lblTotalPage" runat="server" Height="20" Font-Size="10px" style="vertical-align: middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-go.png"      ID="btnGo"          runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-foward.png"  ID="btnNext"        runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-last.png"    ID="btnMoveLast"    runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>
                                <asp:Label ID="lblMaxPageCount" runat="server" Visible="false" Height="20" Font-Size="10px" style="vertical-align:middle;"/>
                      </asp:Panel>
                    </td>
                    <td align="right">
                        Number of entries per page : <asp:LinkButton ID="lnkFoot10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkFoot25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkFoot100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkFoot150Item" runat="server" Text="150" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

        <iframe src="http://www.w3schools.com">
  <p>Your browser does not support iframes.</p>
</iframe>

<asp:Label ID="lblhidSortType" runat="server" Visible="false" Text="ORDER BY Name DESC, Mobile DESC, Company DESC, Status DESC" />
    </div>
</asp:Content>

